package com.shopping.pojo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Arrays;

public class Trade {

    int id;
    @Size(max = 50)
    String tradeName;
    @Size(max = 200)
    String tradeIntroduce;
    @Size(max = 30)
    String type1;
    @Size(max = 30)
    String type2;
    @NotNull
    float price;
    @Size(max = 20)
    String specification;
    @NotNull
    int inventory;
    @NotNull
    float carriage;
    @NotNull
    int storeId;
    @NotNull
    String pic1;
    String pic2;
    String pic3;
    String pic4;
    String pic5;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public String getType2() {
        return type2;
    }

    public void setType2(String type2) {
        this.type2 = type2;
    }

    public String getTradeName() {
        return tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

    public String getTradeIntroduce() {
        return tradeIntroduce;
    }

    public void setTradeIntroduce(String tradeIntroduce) {
        this.tradeIntroduce = tradeIntroduce;
    }

    public String getType1() {
        return type1;
    }

    public void setType1(String type) {
        this.type1 = type;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public float getCarriage() {
        return carriage;
    }

    public void setCarriage(float carriage) {
        this.carriage = carriage;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public String getPic1() {
        return pic1;
    }

    public void setPic1(String pic1) {
        this.pic1 = pic1;
    }

    public String getPic2() {
        return pic2;
    }

    public void setPic2(String pic2) {
        this.pic2 = pic2;
    }

    public String getPic3() {
        return pic3;
    }

    public void setPic3(String pic3) {
        this.pic3 = pic3;
    }

    public String getPic4() {
        return pic4;
    }

    public void setPic4(String pic4) {
        this.pic4 = pic4;
    }

    public String getPic5() {
        return pic5;
    }

    public void setPic5(String pic5) {
        this.pic5 = pic5;
    }

    @Override
    public String toString() {
        return "Trade{" +
                "id=" + id +
                ", tradeName='" + tradeName + '\'' +
                ", tradeIntroduce='" + tradeIntroduce + '\'' +
                ", type1='" + type1 + '\'' +
                ", type2='" + type2 + '\'' +
                ", price=" + price +
                ", specification='" + specification + '\'' +
                ", inventory=" + inventory +
                ", carriage=" + carriage +
                ", storeId=" + storeId +
                ", pic1='" + pic1 + '\'' +
                ", pic2='" + pic2 + '\'' +
                ", pic3='" + pic3 + '\'' +
                ", pic4='" + pic4 + '\'' +
                ", pic5='" + pic5 + '\'' +
                '}';
    }
}
